package com.ivan.servicebase.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Ivan
 * @date 2020/7/20 23:10
 * @Description: 自定义异常类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class IvanException extends RuntimeException {
    @ApiModelProperty(value = "异常代码")
    private Integer code;

    @ApiModelProperty(value = "异常消息")
    private String msg;
}
